# -*- coding: utf-8 -*-
"""
 @Time    : 2021/1/25 下午6:09
 @Author  : tgy
 
"""

def test01(lists:list):
    ...
    it = iter(lists)
    while True:
        try:
            val = next(it)
            print(val)
        except Exception:
            break

if __name__ == '__main__':
    ...
    test01([1,2,3])